<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>embedme: libemb::Base64 Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">embedme
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>libemb</b></li><li class="navelem"><a class="el" href="classlibemb_1_1_base64.html">Base64</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classlibemb_1_1_base64-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">libemb::Base64 Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>BASE64编解码器  
 <a href="classlibemb_1_1_base64.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_base64_8h_source.html">Base64.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a57ae93fdebbba87965563d1bfd8e3b53"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_base64.html#a57ae93fdebbba87965563d1bfd8e3b53">b64Encode</a> (const std::string &amp;binDataIn, std::string &amp;b64DataOut)</td></tr>
<tr class="memdesc:a57ae93fdebbba87965563d1bfd8e3b53"><td class="mdescLeft">&#160;</td><td class="mdescRight">base64编码  <a href="classlibemb_1_1_base64.html#a57ae93fdebbba87965563d1bfd8e3b53">More...</a><br /></td></tr>
<tr class="separator:a57ae93fdebbba87965563d1bfd8e3b53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac09bdf18633604835aa0e199bf39eb27"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_base64.html#ac09bdf18633604835aa0e199bf39eb27">b64Decode</a> (const std::string &amp;b64DataIn, std::string &amp;binDataOut)</td></tr>
<tr class="memdesc:ac09bdf18633604835aa0e199bf39eb27"><td class="mdescLeft">&#160;</td><td class="mdescRight">base64解码  <a href="classlibemb_1_1_base64.html#ac09bdf18633604835aa0e199bf39eb27">More...</a><br /></td></tr>
<tr class="separator:ac09bdf18633604835aa0e199bf39eb27"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e3f624b62c0b452b111bd0a8461394d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_base64.html#a9e3f624b62c0b452b111bd0a8461394d">b64EncodeUrlSafe</a> (const std::string &amp;binDataIn, std::string &amp;b64DataOut)</td></tr>
<tr class="memdesc:a9e3f624b62c0b452b111bd0a8461394d"><td class="mdescLeft">&#160;</td><td class="mdescRight">base64编码(URL安全)  <a href="classlibemb_1_1_base64.html#a9e3f624b62c0b452b111bd0a8461394d">More...</a><br /></td></tr>
<tr class="separator:a9e3f624b62c0b452b111bd0a8461394d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e632a66a69edb2ed06903a73b2236c1"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_base64.html#a0e632a66a69edb2ed06903a73b2236c1">b64DecodeUrlSafe</a> (const std::string &amp;b64DataIn, std::string &amp;binDataOut)</td></tr>
<tr class="memdesc:a0e632a66a69edb2ed06903a73b2236c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">base64解码(URL安全)  <a href="classlibemb_1_1_base64.html#a0e632a66a69edb2ed06903a73b2236c1">More...</a><br /></td></tr>
<tr class="separator:a0e632a66a69edb2ed06903a73b2236c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>BASE64编解码器 </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="ac09bdf18633604835aa0e199bf39eb27"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac09bdf18633604835aa0e199bf39eb27">&#9670;&nbsp;</a></span>b64Decode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool libemb::Base64::b64Decode </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>b64DataIn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string &amp;&#160;</td>
          <td class="paramname"><em>binDataOut</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>base64解码 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">b64DataIn</td><td>输入数据 </td></tr>
    <tr><td class="paramname">binDataOut</td><td>输出数据 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true 解码成功 </dd>
<dd>
false 解码失败 </dd></dl>

</div>
</div>
<a id="a0e632a66a69edb2ed06903a73b2236c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0e632a66a69edb2ed06903a73b2236c1">&#9670;&nbsp;</a></span>b64DecodeUrlSafe()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool libemb::Base64::b64DecodeUrlSafe </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>b64DataIn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string &amp;&#160;</td>
          <td class="paramname"><em>binDataOut</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>base64解码(URL安全) </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">b64DataIn</td><td>输入数据 </td></tr>
    <tr><td class="paramname">binDataOut</td><td>输出数据 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true 解码成功 </dd>
<dd>
false 解码失败 </dd></dl>

</div>
</div>
<a id="a57ae93fdebbba87965563d1bfd8e3b53"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a57ae93fdebbba87965563d1bfd8e3b53">&#9670;&nbsp;</a></span>b64Encode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool libemb::Base64::b64Encode </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>binDataIn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string &amp;&#160;</td>
          <td class="paramname"><em>b64DataOut</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>base64编码 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">binDataIn</td><td>输入数据 </td></tr>
    <tr><td class="paramname">b64DataOut</td><td>输出数据 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true 编码成功 </dd>
<dd>
false 编码失败 </dd></dl>

</div>
</div>
<a id="a9e3f624b62c0b452b111bd0a8461394d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e3f624b62c0b452b111bd0a8461394d">&#9670;&nbsp;</a></span>b64EncodeUrlSafe()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool libemb::Base64::b64EncodeUrlSafe </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>binDataIn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string &amp;&#160;</td>
          <td class="paramname"><em>b64DataOut</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>base64编码(URL安全) </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">binDataIn</td><td>输入数据 </td></tr>
    <tr><td class="paramname">b64DataOut</td><td>输出数据 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true 编码成功 </dd>
<dd>
false 编码失败 </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/<a class="el" href="_base64_8h_source.html">Base64.h</a></li>
<li>src/Base64.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
